package me.zhengjie.modules.power.service.mapstruct;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import me.zhengjie.modules.power.service.dto.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * SysUserMapper
 *
 * @author weiruitao
 * @date 2021/11/17
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {
    @Select("Select user_id from sys_user where username = #{username}")
    String getUserId(String username);
}
